package com.bicon.botu.core.base.validate.annotation;

import java.lang.annotation.*;

/**
 * @version 1.0.0
 * @author: Gyb
 * @date 2018/3/5
 * @description
 **/
@Target({ElementType.FIELD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Length {

    /**
     * 值小于或等于max
     *
     * @return
     */
    int max() default Integer.MAX_VALUE;

    /**
     * 值大于或等于min
     *
     * @return
     */
    int min() default 0;

    String message();
}
